<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="__LIB__/Hui-iconfont/1.0.7/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui.admin/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/app.css"/>
    <script type="text/javascript" src="__LIB__/jquery/1.9.1/jquery.min.js"></script>
</head>
<body>
    <div class="pd-20 upgrade-box">
        <div id="show-list" class="show-list">
            <div id ="upgrade" class="upgrade"></div>
            <div id="success" class="upgrade"></div>
        </div>
            <script type="text/javascript">
                var list   = $('#upgrade'),
                    success_list =$('#success');
                
                function showMsg(msg, classname){
                    var color = '';
                    if (status != null) {
                        color = ' class="' + classname + '"';
                    }
                    if(classname == 'info'){
                        var html = '<p' + (color ? color : '') + '><img class="ml-20" src="__STATIC__/css/images/upgrade_loading.gif" alt=""> ' + msg + '</p>';
                        
                    }
                    if(classname == 'success'){                        
                        var html = '<p' + (color ? color : '') + '><i class="Hui-iconfont f-28">&#xe676;</i> ' + msg + '</p>';
                        
                    }
                    if(classname == 'error'){
                        var html = '<p' + (color ? color : '') + '><i class="Hui-iconfont f-28">&#xe60b;</i> ' + msg + '</p>';
                        var content = '<button type="submit" class="btn btn-danger radius-rounded close_iframe" onClick="layer_close();">&nbsp;<i class="Hui-iconfont">&#xe6a6;</i> 升级失败&nbsp;</button><button type="button" class="btn btn-default radius-rounded ml-20 close_iframe" onClick="layer_close();">&nbsp;<i class="Hui-iconfont">&#xe6a6;</i> 关闭&nbsp;</button>'
                        setTimeout(function(){$('.submit-btn',window.parent.document).html(content)},20);
                    }
                    if(classname == 'success'){
                        success_list.append(html);
                        list.html('');
                    }else{
                        list.html(html);
                    }
                     
                    document.scrollTop += 30;
                }
            </script>
           
    </div>
</body>
</html>